Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix disappearing exceptions in manhole. #5035

Merged
merged 1 commit into from
Apr 10, 2019
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Apr 9, 2019

Avoid sending syntax errors from the manhole to sentry.

Fixes #4768.

Avoid sending syntax errors from the manhole to sentry.
@codecov
Copy link

codecov bot commented Apr 9, 2019

Codecov Report

Merging #5035 into develop will decrease coverage by 0.02%.
The diff coverage is 27.58%.

@@             Coverage Diff             @@
##           develop    #5035      +/-   ##
===========================================
- Coverage    61.58%   61.55%   -0.03%     
===========================================
  Files          332      332              
  Lines        34216    34244      +28     
  Branches      5643     5644       +1     
===========================================
+ Hits         21071    21078       +7     
- Misses       11632    11650      +18     
- Partials      1513     1516       +3

@erikjohnston
Copy link
Member

How was sentry intercepting this? I assume its not logging as sentry would just pass that on

@richvdh
Copy link
Member Author

richvdh commented Apr 9, 2019

https://github.com/python/cpython/blob/v3.6.8/Lib/code.py#L128 normally sends the exception to self.write, which writes it to the ssh channel, but if somebody has set the exception hook (as sentry does), then it assumes you want to send it there instead.

this patch just removes the check on the exception hook.

@richvdh richvdh merged commit 329688c into develop Apr 10, 2019
@richvdh richvdh deleted the rav/fix_sentry_errors branch April 10, 2019 06:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants